@import './modules/reset.scss';
@import './modules/header.scss';
@import './modules/footer.scss';
@import './modules/protect.scss';

body{
    width: 100%;
    background-color: #FAFAFA;
}
.goodsBuy{
    width: 100%;
    height: 700px;
    // background-color: blue;
    .goodsBuy-content{
        width: 90%;
        height: 100%;
        // background-color: orange;
        margin: auto;
        display: flex;
        div.picture{
            width: 40%;
            height: 100%;
            // background-color: orchid;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            .bigPic{
                width: 400px;
                height: 400px;
                // height: calc(width*1);
                // background-color: paleturquoise;
                display: flex;
                border: 1px #ccc solid;
                box-sizing: border-box;
                padding: 0px;
                position: relative;
                img{
                    width: 100%;
                    margin: auto;
                }
                span{
                    display: none;
                    width: 200px;
                    height: 200px;
                    position: absolute;
                    left: 0;
                    top: 0;
                    background-color: orangered;
                    opacity: 0.5;
                }
                div.zoom{
                    display: none;
                    width:400px;
                    height: 400px;
                    position: absolute;
                    left: 400px;
                    top: 0px;
                    overflow: hidden;
                    img{
                        width: 800px;
                        height: 800px;
                        position:absolute;
                        left: 0;
                        top: 0;
                    }
                }

            }
            .bigPic:hover span{
                display: block;
            }
            .bigPic:hover div{
                display: block;
            }
            .smallPic{
                width: 80%;
                height: 150px;
                // background-color: palevioletred;
                display: flex;
                justify-content: space-evenly;
                align-items: center;
                img{
                    cursor: pointer;
                    width: 70px;
                    height: 70px;
                    border: 1px #ccc solid;
                    box-sizing: border-box;
                    padding: 4px;
                }
                img.ac{
                    border: 2px orangered solid;
                }
            }
        }
        div.detail{
            
            width: 60%;
            height: 100%;
            // background-color: palegreen;
            display: flex;
            flex-direction: column;
            align-items: center;
            .detailHead{
                border-bottom: 1px #ccc solid;
                margin-top: 50px;
                width: 80%;
                height: 25%;
                // background-color: orange;
                display: flex;
                flex-direction: column;
                .title{
                    font-size: 24px;
                    color: #333333;
                    margin-bottom: 10px;
                }
                .describe{
                    width: 620px;
                    height: auto;
                    overflow: hidden;
                    text-align: left;
                }
                .price{
                    margin-top: 10px;
                    color: rgb(0, 198, 94);
                    font-size: 30px;
                }
            }
            .detailChoose{
                margin-top: 20px;
                overflow: hidden;
                width: 80%;
                height: 40%;
                // background-color: pink;
               
                div{
                    width: 100%;
                    height: 33%;
                    // background-color: yellow;
                    display: flex;
                    text-align: center;
                    span{
                        width: 25%;
                        height: 50px;
                        // background-color: red;
                        text-align: center;
                        line-height: 50px;
                    }
                    div{
                        width:75% ;
                        height: 50px;
                        // background-color: orange;
                        div{
                            width: 25%;
                            height: 50px;
                            // background-color: wheat;
                            line-height: 50px;
                            margin-right: 5%;
                            box-sizing: border-box;
                            padding:0 10px;
                            border-radius: 3px;
                            border: 1px #ccc solid;
                            cursor: pointer;
                        }
                        .ac{
                            border: 2px rgb(28, 211, 28) solid;
                        }
                        
                    }
                    div.buyNum{
                        width: auto;
                        height: 50px;
                        display: flex;
                        line-height: 50px;
                        justify-content: space-around;
                        border: 1px #ccc solid;
                        // background-color: yellowgreen;
                        .sub,.plus{
                            width: 30px;
                            height: 100%;
                            border: 0px;
                        }
                        i{
                            text-align: center;
                            width: 60px;
                            height: 100%;
                        }
                    }
                }
            }
            .shopCar{
                width: 80%;
                height: 50px;
                // background-color: orange;
                display: flex;
                div{
                    width: 150px;
                    height: 100%;
                    text-align: center;
                    line-height: 50px;
                    border-radius: 5px;
                    margin: 50px 30px 0 40px;
                    cursor: pointer;
                }
                div:nth-child(1){
                    background-color: black;
                    color: white;
                    
                }
                a{
                    background-color: #00C65E;
                    color: white;
                    width: 150px;
                    height: 100%;
                    text-align: center;
                    line-height: 50px;
                    border-radius: 5px;
                    margin: 50px 30px 0 40px;
                    cursor: pointer;
                }
            }
            
        }
    }
}
.goodspics{
    width: 80%;
    height: auto;
    margin: auto;
    img{
        width: 100%;
    }
}
.shopCart{
    width: 50px;
    height: 70px;
    cursor: pointer;
    background-color: #202020;
    opacity: 0.8;
    border-radius: 10px;
    position: fixed;
    right: 0;
    top: 300px;
    text-align: center;
    i{
        font-size: 40px;
        color: #00D062;
    }
    b{
        color: #00D062;
    }

}